set(include_dir
    ${CMAKE_CURRENT_SOURCE_DIR}/../include
)

set(libs_dir
    ${CMAKE_CURRENT_SOURCE_DIR}/../build/src/
)

set(dep_libs
    ${SDK_NAME}
)

## 是否编译list相关接口
if(COMPILE_LIST)
    add_definitions(-DCOMPILE_DEFINITIONS_LIST)
endif(COMPILE_LIST)

include_directories(${include_dir})
link_directories(${libs_dir})
link_libraries(${dep_libs})


file(GLOB C_SOURCE_FILE "*.c")

foreach(C_FILE ${C_SOURCE_FILE})
    get_filename_component(EXE_NAME ${C_FILE} NAME_WE)
    add_executable(${EXE_NAME} ${C_FILE})
endforeach(C_FILE ${C_SOURCE_FILE})